package org.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:cloudController
 * @Date:2025/9/10 10:56
 */
@RestController
@RequestMapping("/nacos")
@RefreshScope
public class cloudController {

    @Value("${user.id}")
    private String userId;

    @Value("${user.name}")
    private String userName;

    @Value("${user.age}")
    private String userAge;

    @GetMapping
    String A(){
        return userId+","+userName+","+userAge;
    }
}
